/**
 * Copyright 1993-2018 Agree Tech.
 * All rights reserved.
 */
package com.fjl.pojo;

/**
 *
 * @author PuYun pu.yun@agree.com.cn
 */
public class ProcessActivityInfo
{
    /**
     * 活动id
     */
    private String activityId;

    /**
     * 活动type 
     */
    private String activityType;

    /**
     * 流程定义id
     */
    private String processDefinitionId;
    
    /**
     * 流程定义key
     */
    private String processDefinitionKey;
    
    /**
     * @return the processDefinitionKey
     */
    public String getProcessDefinitionKey()
    {
        return processDefinitionKey;
    }

    /**
     * @param processDefinitionKey the processDefinitionKey to set
     */
    public void setProcessDefinitionKey(String processDefinitionKey)
    {
        this.processDefinitionKey = processDefinitionKey;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ProcessActivityInfo other = (ProcessActivityInfo) obj;
        if (activityId == null)
        {
            if (other.activityId != null)
                return false;
        } else if (!activityId.equals(other.activityId))
            return false;
        if (processDefinitionId == null)
        {
            if (other.processDefinitionId != null)
                return false;
        } else if (!processDefinitionId.equals(other.processDefinitionId))
            return false;
        return true;
    }

    /**
     * @return the activityId
     */
    public String getActivityId()
    {
        return activityId;
    }

    /**
     * @return the activityType
     */
    public String getActivityType()
    {
        return activityType;
    }

    /**
     * @return the processDefinitionId
     */
    public String getProcessDefinitionId()
    {
        return processDefinitionId;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((activityId == null) ? 0 : activityId.hashCode());
        result = prime * result + ((processDefinitionId == null) ? 0 : processDefinitionId.hashCode());
        return result;
    }

    /**
     * @param activityId the activityId to set
     */
    public void setActivityId(String activityId)
    {
        this.activityId = activityId;
    }

    /**
     * @param activityType the activityType to set
     */
    public void setActivityType(String activityType)
    {
        this.activityType = activityType;
    }

    /**
     * @param processDefinitionId the processDefinitionId to set
     */
    public void setProcessDefinitionId(String processDefinitionId)
    {
        this.processDefinitionId = processDefinitionId;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "ProcessActivityInfo [activityId=" + activityId + ", activityType=" + activityType
                + ", processDefinitionId=" + processDefinitionId + "]";
    }


}
